using System;
using ASmile.ORM.Entitys;

namespace ASmile.DBModel
{
	public partial class Dict_BNo : EntityBase
	{
		private System.Int32 _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(ColumnName = CNId, IsPrimaryKey = true, IsNotNull = true)]
		public System.Int32 Id
		{
			get { return _Id; }
			set
			{
				_Id = value;
				base.SetFieldChanged(CNId) ;
			}
		}

		private System.String _Caption;
		/// <summary>
		/// Caption
		/// </summary>
		[Entity(ColumnName = CNCaption, IsNotNull = true)]
		public System.String Caption
		{
			get { return _Caption; }
			set
			{
				_Caption = value;
				base.SetFieldChanged(CNCaption) ;
			}
		}

		private System.String _FrontStr;
		/// <summary>
		/// 前缀字符串
		/// </summary>
		[Entity(ColumnName = CNFrontStr, IsNotNull = true)]
		public System.String FrontStr
		{
			get { return _FrontStr; }
			set
			{
				_FrontStr = value;
				base.SetFieldChanged(CNFrontStr) ;
			}
		}

		private System.DateTime _LastDate;
		/// <summary>
		/// LastDate
		/// </summary>
		[Entity(ColumnName = CNLastDate, IsNotNull = true)]
		public System.DateTime LastDate
		{
			get { return _LastDate; }
			set
			{
				_LastDate = value;
				base.SetFieldChanged(CNLastDate) ;
			}
		}

		private System.String _DateFormat;
		/// <summary>
		/// DateFormat
		/// </summary>
		[Entity(ColumnName = CNDateFormat)]
		public System.String DateFormat
		{
			get { return _DateFormat; }
			set
			{
				_DateFormat = value;
				base.SetFieldChanged(CNDateFormat) ;
			}
		}

		private System.Int32 _MaxValue;
		/// <summary>
		/// MaxValue
		/// </summary>
		[Entity(ColumnName = CNMaxValue, IsNotNull = true)]
		public System.Int32 MaxValue
		{
			get { return _MaxValue; }
			set
			{
				_MaxValue = value;
				base.SetFieldChanged(CNMaxValue) ;
			}
		}

		private System.Int32 _MaxValueLength;
		/// <summary>
		/// MaxValueLength
		/// </summary>
		[Entity(ColumnName = CNMaxValueLength, IsNotNull = true)]
		public System.Int32 MaxValueLength
		{
			get { return _MaxValueLength; }
			set
			{
				_MaxValueLength = value;
				base.SetFieldChanged(CNMaxValueLength) ;
			}
		}

		private System.String _BackStr;
		/// <summary>
		/// BackStr
		/// </summary>
		[Entity(ColumnName = CNBackStr)]
		public System.String BackStr
		{
			get { return _BackStr; }
			set
			{
				_BackStr = value;
				base.SetFieldChanged(CNBackStr) ;
			}
		}

		private System.String _Remark;
		/// <summary>
		/// Remark
		/// </summary>
		[Entity(ColumnName = CNRemark)]
		public System.String Remark
		{
			get { return _Remark; }
			set
			{
				_Remark = value;
				base.SetFieldChanged(CNRemark) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNCaption = "Caption";
		public const string CNFrontStr = "FrontStr";
		public const string CNLastDate = "LastDate";
		public const string CNDateFormat = "DateFormat";
		public const string CNMaxValue = "MaxValue";
		public const string CNMaxValueLength = "MaxValueLength";
		public const string CNBackStr = "BackStr";
		public const string CNRemark = "Remark";
		#endregion

	}
}
